JMGetFrameViewer
Finds the applet that owns a particular frame.
OSStatus JMGetFrameViewer ( JMFrameRef frame, JMAppletViewerRef* viewer, JMFrameRef* parentFrame);
frame
- The frame whose applet you want to determine.
viewer
- A pointer to the applet. On return, this parameter is the applet associated with the
frame
parameter.parentFrame
- A pointer to the parent frame. On return, this parameter is the applet's parent frame (that is, the one created for the applet when it was instantiated).
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
In the AWT context associated with the applet, the frame index of the parent frame is 0.SEE ALSO
TheJMCountAWTContextFrames
function.